package net.zjvis.lab.nebula.backend.lib.algorithm.conf.connector;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

@Builder
@Getter
@Setter
@EqualsAndHashCode
public class Mysql implements Connector {
    private String host;
    private int port;
    private String username;
    private String password;
    @JsonProperty("database_name")
    private String databaseName;
    @JsonProperty("read_sql")
    private String readSql;
    @JsonProperty("write_table_name")
    private String writeTableName;
    @JsonProperty("if_write_table_exists")
    @Builder.Default
    private String ifWriteTableExists = "fail";
}
